/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package SystemManager.view;
import data.pojo.User;
import java.util.Arrays;
import java.util.List;
import java.util.Vector;
import javax.swing.table.DefaultTableModel;
/**
 *
 * @author Administrator
 */
public class TableModelFactory {
    public static Vector<String> USER_COLUMN_NAMES = new Vector(Arrays.asList("工号", "姓名", "职位"));
   
      
   public static  DefaultTableModel getAddUserModel() {
      
        return   new MyTableModel(null, USER_COLUMN_NAMES);
    }
   
}
     /**
     *
     * @return
     */
   class MyTableModel extends DefaultTableModel {

    public MyTableModel(Vector<Vector<String>> data, Vector<String> columnNames) {
        super(data, columnNames);

    }
  

    public boolean isCellEditable(int row, int column) {
        return false;
    }
     public boolean getColumnSelectionAllowed() {
        return false;
    }
     
}